// 定义登录接口
import instance from "@/utils/request";


// 获取验证码数据
export function getcaptchadata() {
    return instance ({
        url:'/captcha/api/math',
        method:'get',
    })
}
// 获取登录数据
export function postlogindata(data:{
    captcha:string
    key:string,
    username:string
    password:string
}) {
    return instance ({
        url:'/api/common/auth/login',
        method:'post',
        data
    })
}